'use strict';

angular.module('voteWithAuthApp')
  .config(function ($stateProvider) {
    $stateProvider
      .state('admin', {
        abstract: true,
        templateUrl: 'app/admin/admin.html',
        controller: 'AdminCtrl'
      })
      .state('admin.meeting-list', {
        url: '/cp/meeting/list',
        templateUrl: 'app/admin/meeting-list.html',
        controller: 'MeetingListCtrl'
      })
      .state('admin.meeting-add', {
        url: '/cp/meeting/add',
        templateUrl: 'app/admin/meeting-add.html',
        controller: 'MeetingAddCtrl'
      })
      .state('admin.meeting-detail', {
        url: '/cp/meeting/{meetingId}/detail',
        templateUrl: 'app/admin/meeting-detail.html',
        controller: 'MeetingDetailCtrl'
      });
  });